package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.SensitiveDTO;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;

import java.util.List;

public interface AdSeneitiveService extends IService<AdSensitive> {
    /*
    * 敏感词分页查询
    * */
    ResponseResult<AdSensitive> findAllSensitive(SensitiveDTO sensitiveDTO);
    /*
    * 敏感词添加
    * */
    ResponseResult<AdSensitive> insertSensitive(AdSensitive adSensitive);
    /*
    * 敏感词修改
    * */
    ResponseResult<AdSensitive> updateSensitive(AdSensitive adSensitive);

    /*
     * 敏感词删除
     * */
    ResponseResult<AdSensitive> deleteSensitive(Integer id);

    /*
    * 敏感词查询，一次性查询所有
    * */
    ResponseResult<List<String>> selectAllSensitive();
}
